import request from '@/axios'

enum Api {
  getRoleList = "/role",
  saveRole = "/role/save",
  removeRole = "/role/remove"
}

export const getRoleListApi = () => {
  return request.get(Api.getRoleList)
}

export const saveRoleApi = (data: any) => {
  return request.post(Api.saveRole, data)
}

export const removeRoleApi = (data: any) => {
  return request.get(Api.removeRole, data)
}